package com.zy.dp.visitor.example1;

public class Client
{
	public static void main(String[] args)
	{
		ObjectStructure os = new ObjectStructure();

		Element eleA = new ConcreteElementA();
		Element eleB = new ConcreteElementB();

		os.addElement(eleA);
		os.addElement(eleB);

		Visitor visitor = new ConcreteVisitor2();

		os.handleRequest(visitor);
	}

}
